import { createRouter, createWebHistory, RouteLocationRaw } from 'vue-router'


const routes = [
    {
        // 登录页面
        path: '/',
        name: 'Login',
        component: () => import('../view/One/Login.vue')
    },
    {
        //用户登录
        path: '/ShowUser',
        name: 'ShowUser',
        component: () => import('../view/One/ShowUser.vue')
    },
    {
        //显示登录列表
        path: '/UserLogin',
        name: 'UserLogin',
        component: () => import('../view/Two/UserLogin.vue')
    },
    {
        //添加用户信息
        path: '/AddUser',
        name: 'AddUser',
        component: () => import('../view/Two/AddUser.vue')
    },
    {
        //显示用户信息列表
        path: '/SelUser',
        name: 'SelUser',
        component: () => import('../view/Two/SelUser.vue')
    },
    {
        //用户登录 判断是用户还是管理员
        path: '/UHLogin',
        name: 'UHLogin',
        component: () => import('../view/Three/UHLogin.vue')
    },
    {
        //用户显示借款项目
        path: '/UserShowBorrow',
        name: 'UserShowBorrow',
        component: () => import('../view/Three/UserShowBorrow.vue')
    },
    {
        //添加用户借款
        path: '/UserAddBorroe',
        name: 'UserAddBorroe',
        component: () => import('../view/Three/UserAddBorroe.vue')
    },
    {
        //借款列表
        path: '/GLShow',
        name: 'GLShow',
        component: () => import('../view/Three/GLShow.vue')
    },
]

const router = createRouter({

    history: createWebHistory(),
    routes
})

export default router

